package com.example.model.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 学生成绩实体类，对应数据库score表
 */
@Data
@Schema(name = "学生成绩实体类", description = "学生课程设计成绩信息，对应数据库score表")
public class Score {
    @Schema(description = "成绩记录ID，主键", required = true, example = "1")
    private Integer id;             // 成绩记录ID，主键
    
    @Schema(description = "选题记录ID，外键关联student_selection表", required = true, example = "1")
    private Integer selectionId;    // 选题记录ID，外键关联student_selection表
    
    @Schema(description = "分数，支持小数", required = true, example = "85.5")
    private BigDecimal scoreValue;  // 分数，支持小数
    
    @Schema(description = "教师对学生作品的评价", example = "项目完成度较高，界面美观，功能完善")
    private String evaluation;      // 教师评价
    
    @Schema(description = "评分教师ID，外键关联user表", required = true, example = "5")
    private Integer gradedBy;       // 评分教师ID，外键关联user表
}